/**
 * 2017，thor.com，all rights reserved。
 * 
 * Project：		palmmall-core
 * Filename：	ShopServiceImpl.java
 * Created：		2017年5月25日
 * Creator：		wolv
 */
package com.thor.palmmall.impl.rpt.shop;

import org.springframework.beans.factory.annotation.Autowired;

import com.thor.commons.exception.ThorServiceException;
import com.thor.commons.util.Assert;
import com.thor.palmmall.api.rpt.Report;
import com.thor.palmmall.api.rpt.shop.RentalReportParam;
import com.thor.palmmall.api.rpt.shop.ShopService;
import com.thor.palmmall.dao.rpt.shop.ShopDao;

/**
 * @author wolv
 *
 */
public class ShopServiceImpl implements ShopService {

	@Override
	public Report calcRentalReport(RentalReportParam param) throws ThorServiceException {
		Assert.assertArgumentNotNull(param, "param");
		return shopDao.calcRentalReport(param);
	}

	@Override
	public Report getFloorArea(String storeId) throws ThorServiceException {
		Assert.assertArgumentNotNull(storeId, "storeId");
		return shopDao.getFloorArea(storeId);
	}

	@Override
	public Report getFloorShopCount(String storeId) throws ThorServiceException {
		Assert.assertArgumentNotNull(storeId, "storeId");
		return shopDao.getFloorShopCount(storeId);
	}

	@Autowired
	private ShopDao shopDao;
}
